package com.cjm.one.webmanager.service.goods.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.cjm.one.common.result.Result;
import com.cjm.one.goods.client.GoodsCommentTagClient;
import com.cjm.one.model.goods.entity.GoodsCommentTag;
import com.cjm.one.webmanager.service.goods.GoodsCommentTagService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

@Service
public class GoodsCommentTagServiceImpl implements GoodsCommentTagService  {
    @Resource
    private GoodsCommentTagClient goodsCommentTagClient;
    @Override
    public Result<Page<GoodsCommentTag>> list(Long current, Long size, String keyword) {
        return goodsCommentTagClient.list(current,size,keyword);
    }

    @Override
    public Result<Boolean> delete(Long id) {
        return goodsCommentTagClient.delete(id);
    }

    @Override
    public Result<Boolean> save(GoodsCommentTag goodsCommentTag) {
        return goodsCommentTagClient.save(goodsCommentTag);
    }

    @Override
    public Result<GoodsCommentTag> getById(Long id) {
        return goodsCommentTagClient.getById(id);
    }

    @Override
    public Result<Boolean> update(GoodsCommentTag goodsCommentTag) {
        return goodsCommentTagClient.update(goodsCommentTag);
    }
}
